<%@ page language="java" import="java.util.*"  contentType="text/html; charset=UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'login.jsp' starting page</title>
    
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">
	body{
	background-color :#f8f8ff;
		padding:0px 0px;
		margin:0px 0px;
		width: 100%;
		height: 100%;
	}
	#div1{
		background-image:url(/wifiIMG/icon/img/login.gif);
		 background-repeat: repeat-y;
		height: 450px;
		width: 100%;
		margin: 8% 35%;
	}
	#div2{
	
		width:50;
		height:80;
			position: relative;
  left: 91px;
  top: 205px;
		
	}
	
#submin{
font-size:15px;
line-height:25px;
		width: 202px;
margin-top:16.5px;
	padding:13px; 
}
#text{
font-size:18px;
width: 202px;
height: 32px;	
}
#psw{
font-size:18px;
margin-top:-2px;
width: 202px;
height: 32px;	
}
</style>
<script type="text/javascript">
	function login(){
		var g1=document.getElementById("text").value;
		var g2=document.getElementById("psw").value;
		if(g1==""){
			alert("用户名不能为空");
			return false;
		}
		if(g2==""){
			alert("密码不能为空");
			return false;
		}
		return true;
	}
	function yanzheng (){
		var a = "${requestScope.No}";
		if(a!=""){
			alert(a);
		}
		if (window.top!=window.self){
			window.top.location="${pageContext.request.contextPath}/jsp/login.jsp";
		}
	}
</script>
  </head>
  <body style="background-color:'#f8f8ff'" onload="yanzheng()">
	<div id="div1">
		<div id="div2">
		<form action="${pageContext.request.contextPath}/GuanLogin/admin_adminLogin.action " method="post" onsubmit="return login()">
			<input type="text" name="name" class="input"  id="text" autofocus="autofocus"/><p>
			<input type="password" name="password" class="input" id= "psw"/>
			<input type="submit" value="登    陆" id="submin"/>
		</form>
		</div>
	</div>
  </body>
</html>
